package fiziksobject;

import physics.Forcer;
import physics.Vector;
import physics.physicsobject;

public class Gravity implements Forcer {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Vector strength;
	public Gravity(Vector v) {
		strength = v;
	}
	public Vector[] getForces(physicsobject p) {
		Vector[] vec = {strength.multiply(p.getMass()).toType(Vector.Type.FORCE_GRAVITY)};
		return vec;
	}
	public Vector getStrength() {
		return strength;
	}
	public void setStrength(Vector v) {
		strength = v;
	}
}
